// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;

  .el-dialog__header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .el-dialog__body {
    max-height: 55vh;
    overflow-y: auto;

    .el-form-item {
      margin-bottom: 8px !important;
    }
  }

  /*滚动条整体样式,高宽分别对应横竖滚动条的尺寸*/
  .el-dialog__body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  /*滚动条里面小方块*/
  .el-dialog__body::-webkit-scrollbar-thumb {
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px #eee;
    background: rgba(0, 0, 0, 0.2);
  }

  /*滚动条里面轨道*/
  .el-dialog__body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px #eee;
    border-radius: 0;
    background: #fff;
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.table-search+.el-button {
  margin-left: 10px;
}

// 关于treeselect树input与select存在塌陷问题
.vue-treeselect__single-value,
.vue-treeselect__placeholder {
  line-height: inherit !important;
}

.vue-treeselect__input-container input {
  position: absolute;
}

// 关于treeselect树大小控制
.default .vue-treeselect__control {
  height: 40px !important;
  line-height: 40px;
  font-size: 14px !important;
}

.small .vue-treeselect__control {
  height: 32px !important;
  line-height: 32px;
  font-size: 13px !important;
}

.mini .vue-treeselect__control {
  height: 28px !important;
  line-height: 28px;
  font-size: 12px !important;
}

.miss-disabled {
  display: inline-block;
  position: relative;
}

// 指令禁用
.miss-disabled::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: not-allowed;
  left: 0;
  top: 0;
  z-index: 1;
  display: block;
}

// 信息按钮/alert样式
.el-button--info, .el-alert--info .is-dark {
  background-color: #909399 !important;
  border-color: #909399 !important;
}

// 警告按钮/alert样式
.el-button--warning, .el-alert--warning .is-dark {
  background-color: #e6a23c !important;
  border-color: #e6a23c !important;
}

// 危险按钮/alert样式
.el-button--danger, .el-alert--danger .is-dark {
  background-color: #f56c6c !important;
  border-color: #f56c6c !important;
}

// 信息tag/message样式
.el-tag--info, .el-message--info {
  background-color: #f4f4f5 !important;
  border-color: #e9e9eb !important;
  color: #909399 !important;
}

// 警告tag/message样式
.el-tag--warning, .el-message--warning {
  background-color: #fdf6ec !important;
  border-color: #faecd8 !important;
  color: #e6a23c !important;
}

// 危险tag/message样式
.el-tag--danger, .el-message--danger {
  background-color: #fef0f0 !important;
  border-color: #fde2e2 !important;
  color: #f56c6c !important;
}

// 文字按钮危险样式
.danger-btn {
  color: #f56c6c !important;
}

// 文字按钮警告样式
.warning-btn {
  color: #e6a23c !important;
}

// 文字按钮信息样式
.info-btn {
  color: #909399 !important;
}

// 文字按钮成功样式
.success-btn {
  color: #67c23a !important;
}
